package club.dataresources.service;

import club.dataresources.entity.Customer;
import com.github.pagehelper.Page;


public interface CustomerService {
    //增
    public boolean addCustomer(Customer customer) throws Exception;

    //删
    public boolean removeCustomer(Integer customerId) throws Exception;

    //改
    public boolean updateCustomer(Customer customer) throws Exception;

    //查
    public Customer findCuById(Integer id)throws Exception;

    //列表
    public Page<Customer> listCustomer(Integer page, Integer rows, Customer customer) throws Exception;
}
